<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<?php  $this->Form->cuenta($this->Access->getMy('id'));?>	
	<div class="desplegable">
		<?php  $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="posts_comentarios index">
	<fieldset>
		<legend><?php __('Soporte al Equipo de Trabajo'); ?></legend>
		<?php $group_id= $this->Access->getMy('group_id');
		      $user_id= $this->Access->getMy('id');
		if($group_id=="1"){?>
		<td><?php echo $this->Html->link($this->Html->image('nuevo_documento.png', array('alt'=> __('Agregar Posts', true), 'border' => '0')),
												'../posts/add/',array('escape' => false));
	   ?></td>
	    <?php }?>
		  <table class="tabla_formulario">
	<tr>
	    <th>Titulo</th>
		<th>Resumen</th>
		<th></th>	
		<?php $group_id= $this->Access->getMy('group_id');
		      $user_id= $this->Access->getMy('id');
		    if($group_id=="1"){?>		
		<?php }?>		
	</tr>
	<?
		foreach ($posts as $post):
		?>
			<tr>
			   <td><?php  echo $post['Post']['titulo'];?></td>
				<td><?php  echo $post['Post']['contenido'];?></td>
				<!--  <td>  echo $post['User']['nombre_completo'];?></td>	-->
				
				 <?php $group_id= $this->Access->getMy('group_id');
		              $user_id= $this->Access->getMy('id');
				   if($group_id=="1"){?>
				   <td class="actions">
				      <?php echo $this->Html->link(__('Editar Documento', true), array('action' => '../posts/edit', $post['Post']['id'])); ?>
				      <?php echo $this->Html->link(__('Agregar Adjunto', true), array('action' => '../posts/anexos_post/', $post['Post']['id'])); ?>
			          <?php echo $this->Html->link(__('Ver Adjuntos', true), array('action' => '../posts/ver_anexos_post/', $post['Post']['id'])); ?>
			          <?php echo $this->Html->link(__('Cometarios', true), array('action' => '../comentarios/index/', $post['Post']['id'])); ?>
			       </td>		       
			       <?php } else{?> 
			       <td class="actions">
			          <?php echo $this->Html->link(__('Ver Adjuntos', true), array('action' => '../posts/ver_anexos_post/', $post['Post']['id'])); ?>
			          <?php echo $this->Html->link(__('Cometarios', true), array('action' => '../comentarios/index/', $post['Post']['id'])); ?> 
			       <?php } ?>	
			       </td>	   			    
			</tr>
		<?php
		endforeach;	
	?>
	</table>
	</fieldset>	
	<p class="pagina">
		<?php echo $this->Paginator->counter(array('format' => __('P&aacute;gina %page% de %pages%, mostrando %current% regristros de  un total de %count%,
		 														   empieza con el registro %start%, termina en %end%', true)));?>
	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>	
</div>